<? $this->layout()->setLayout('admin');?>
<? $this->headScript()->appendFile('http://maps.google.com/maps?file=api&amp;v=2&amp;key='.API_KEY)
                      ->appendFile(ROOT.'public/js/gmap/markers-map.js','text/javascript')      
    ->captureStart(); ?>
<? $this->headScript()->captureEnd(); ?>
<h2>Location groups</h2>
<div id="links" style="float: left;">
<dl>
    <!-- Loop through the entries that were provided to us by the controller -->
    <? foreach ($this->groups as $entry): ?>
    <dt><h3><?= $this->escape($entry['name']) ?></h3></dt>
    <dd><?= $this->escape($entry['date_created']) ?></dd>    
    <dd><a href="#" onclick="load('<?=$this->escape($entry['id'])?>')">View Map</a></dd>
    <? endforeach ?>
</dl>
</div>
<div id="map" style="width: 500px; height: 400px; float:right"></div>
